package nc.ui.scm.customer;

import java.awt.Container;

import nc.ui.so.sn.pub.LongTimeTask;
import nc.ui.trade.bsdelegate.BusinessDelegator;
import nc.ui.trade.business.HYPubBO_Client;
import nc.vo.pub.SuperVO;
import nc.vo.scm.customer.CcusCheckInHVO;
public class ClientBusinessDelegator extends BusinessDelegator {

	private Container parent = null;
	
	public ClientBusinessDelegator(Container parent ){
		this.parent = parent;
	}
	@Override
	public SuperVO[] queryHeadAllData(Class headClass, String strBillType,
	    String strWhere) throws Exception {
			String where = "";
			if(strWhere!=null && strWhere.length()>0){
				where =  " ccusbasid in (select distinct dm_ccuscheckin_h.ccusbasid from dm_ccuscheckin_b ,dm_ccuscheckin_h " +
				" where dm_ccuscheckin_h.ccusbasid = dm_ccuscheckin_b.ccusbasid and  isnull(dm_ccuscheckin_h.dr,0)=0 and isnull(dm_ccuscheckin_h.dr,0) = 0 "+
				" and  "+strWhere+") ";
			}
			SuperVO[] vo = HYPubBO_Client.queryByCondition(headClass, where);
			return vo;
		}
}
